package com.administrator.cloudapplication.tools;

import android.util.Log;

/**
 * package: com.ftgj.luoyangculture.tools.UrlUtils
 * author: gyc
 * description:url操作相关的工具类
 * time: create at 2017/4/12 10:47
 */

public class UrlUtils {

    /**
     * 将参数追加到路径上
     *
     * @param params
     * @param url
     * @return
     */
    public static String convertUrl(String[] params, String url) {
        if (params != null) {
            String temp = "";
            for (int i = 0; i < params.length; i++) {
                temp = temp + "/" + params[i];
            }
            url = url + temp;
            Log.d("请求的url参数完整:", url);
            return url;
        } else {
            Log.d("请求的url参数完整:", url);
            return url;
        }
    }
}
